﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;

namespace YieldPro
{
    class Program
    {
        static void Main(string[] args)
        {

            //var jsonObj = JsonConvert.DeserializeObject("{\"productid\":1,\"quantity\":2,\"skuid\":5}");

            var jsonObj = JObject.Parse("{\"productid\":1,\"quantity\":2,\"skuid\":5}");

            var a = Convert.ToInt64(jsonObj["productid"].ToString());

            //int i = 0;
            //foreach (int number in SomeNumbers())
            //{
            //    i++;
            //    if (i == 1)
            //    {
            //        Console.Write(number.ToString() + " ");
            //    }
            //}
            Console.ReadKey();
        }

        public static System.Collections.IEnumerable SomeNumbers()
        {
            yield return 3;
            yield return 5;
            yield return 8;
            yield return 9;
        }
    }

    public class A
    {
        public List<string> names { get; set; }
    }

}
